
package com.soft.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;

// @Component
@ConfigurationProperties(prefix = "car.a")
public class Car {
  private String brand;

  private Integer price;

  public String getBrand() {
    return brand;
  }

  public void setBrand(String brand) {
    this.brand = brand;
  }

  public Integer getPrice() {
    return price;
  }

  public void setPrice(Integer price) {
    this.price = price;
  }

  @Override
  public String toString() {
    return "Car{" + "brand='" + brand + '\'' + ", price=" + price + '}';
  }
}
